/* 悬浮提示框样式 */

.item-tooltip {
  position: fixed;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(96, 125, 159, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  z-index: 9999;
  max-width: 400px;
  min-width: 320px;
  max-height: 400px;
  padding: 0;
  overflow: hidden;
  pointer-events: auto;
  animation: tooltipFadeIn 0.2s ease-out;
  transform: translateZ(0);
  will-change: transform;
}

.tooltip-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  color: white;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}

.tooltip-title {
  display: block;
  word-break: break-word;
  line-height: 1.4;
}

.tooltip-content {
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.tooltip-table {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tooltip-table:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.tooltip-table-name {
  font-weight: 600;
  color: var(--color-subtext);
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.tooltip-columns {
  font-size: 11px;
  color: var(--color-muted);
}

.tooltip-columns strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 12px;
}

.tooltip-columns-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tooltip-column {
  display: inline-block;
  background: rgba(96, 125, 159, 0.08);
  color: var(--color-subtext);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  border: 1px solid rgba(96, 125, 159, 0.15);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tooltip-column:hover {
  background: rgba(96, 125, 159, 0.15);
  border-color: rgba(96, 125, 159, 0.25);
}

.tooltip-no-data {
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
  padding: 20px;
}

/* 滚动条样式 */
.tooltip-content::-webkit-scrollbar {
  width: 6px;
}

.tooltip-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.tooltip-content::-webkit-scrollbar-thumb {
  background: rgba(96, 125, 159, 0.3);
  border-radius: 3px;
}

.tooltip-content::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 125, 159, 0.5);
}